package com.ruoyi.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.HospitalPatientDataMapper;
import com.ruoyi.hospital.domain.HospitalPatientData;
import com.ruoyi.hospital.service.IHospitalPatientDataService;

/**
 * 医院患者数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-24
 */
@Service
public class HospitalPatientDataServiceImpl implements IHospitalPatientDataService 
{
    @Autowired
    private HospitalPatientDataMapper hospitalPatientDataMapper;

    /**
     * 查询医院患者数据
     * 
     * @param id 医院患者数据主键
     * @return 医院患者数据
     */
    @Override
    public HospitalPatientData selectHospitalPatientDataById(Long id)
    {
        return hospitalPatientDataMapper.selectHospitalPatientDataById(id);
    }

    /**
     * 查询医院患者数据列表
     * 
     * @param hospitalPatientData 医院患者数据
     * @return 医院患者数据
     */
    @Override
    public List<HospitalPatientData> selectHospitalPatientDataList(HospitalPatientData hospitalPatientData)
    {
        return hospitalPatientDataMapper.selectHospitalPatientDataList(hospitalPatientData);
    }

    /**
     * 新增医院患者数据
     * 
     * @param hospitalPatientData 医院患者数据
     * @return 结果
     */
    @Override
    public int insertHospitalPatientData(HospitalPatientData hospitalPatientData)
    {
        return hospitalPatientDataMapper.insertHospitalPatientData(hospitalPatientData);
    }

    /**
     * 修改医院患者数据
     * 
     * @param hospitalPatientData 医院患者数据
     * @return 结果
     */
    @Override
    public int updateHospitalPatientData(HospitalPatientData hospitalPatientData)
    {
        return hospitalPatientDataMapper.updateHospitalPatientData(hospitalPatientData);
    }

    /**
     * 批量删除医院患者数据
     * 
     * @param ids 需要删除的医院患者数据主键
     * @return 结果
     */
    @Override
    public int deleteHospitalPatientDataByIds(Long[] ids)
    {
        return hospitalPatientDataMapper.deleteHospitalPatientDataByIds(ids);
    }

    /**
     * 删除医院患者数据信息
     * 
     * @param id 医院患者数据主键
     * @return 结果
     */
    @Override
    public int deleteHospitalPatientDataById(Long id)
    {
        return hospitalPatientDataMapper.deleteHospitalPatientDataById(id);
    }
}
